home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Visual Basic 5.0 (2nd Edition) / Hardcore Visual Basic 5.0 - Second Edition (1997)(Microsoft Press).iso / Source / Sieve / SIEVEMFC / SIEVE.H < prev    next >
C/C++ Source or Header  |  1996-06-02  |  1KB  |  59 lines

  1. // MSieve.h : header file
  2. //
  3.  
  4.  
  5.  
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CSieveMFC command target
  8.  
  9. class CSieveMFC : public CCmdTarget
  10. {
  11.     DECLARE_DYNCREATE(CSieveMFC)
  12.  
  13.     CSieveMFC();           // protected constructor used by dynamic creation
  14.  
  15. // Attributes
  16. public:
  17.  
  18. // Operations
  19. public:
  20.  
  21. // Overrides
  22.     // ClassWizard generated virtual function overrides
  23.     //{{AFX_VIRTUAL(CSieveMFC)
  24.     public:
  25.     virtual void OnFinalRelease();
  26.     //}}AFX_VIRTUAL
  27.  
  28. // Implementation
  29. protected:
  30.     virtual ~CSieveMFC();
  31.  
  32.     short *m_af;
  33.     int  m_iCur;
  34.     short m_iMaxPrime;
  35.     short m_cPrime;
  36.  
  37.     // Generated message map functions
  38.     //{{AFX_MSG(CSieveMFC)
  39.         // NOTE - the ClassWizard will add and remove member functions here.
  40.     //}}AFX_MSG
  41.  
  42.     DECLARE_MESSAGE_MAP()
  43.     DECLARE_OLECREATE(CSieveMFC)
  44.  
  45.     // Generated OLE dispatch map functions
  46.     //{{AFX_DISPATCH(CSieveMFC)
  47.     afx_msg short GetNextPrime();
  48.     afx_msg short GetMaxPrime();
  49.     afx_msg void SetMaxPrime(short nNewValue);
  50.     afx_msg short GetPrimes();
  51.     afx_msg void ReInitialize();
  52.     afx_msg void AllPrimes(LPVARIANT pv);
  53.     //}}AFX_DISPATCH
  54.     DECLARE_DISPATCH_MAP()
  55.     DECLARE_INTERFACE_MAP()
  56. };
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59.